<?php

  class Application_Model_Members extends Zend_Db_Table_Abstract{
    /* Seta a tabela a ser usada*/
    protected function _setup(){
      $this->_name = 'members';
      parent::_setup();
    }
    
    protected function showPre($arrData){
      echo"<pre>";
      print_r($arrData);
      echo"</pre>";
    }
    
    protected function onLoad($objResult){
      if($objResult)
        return $objResult;
      else
        return false;
    }  
    
    public function getById($intIdMember){
      $strSql = $this->strQuery()->where($this->_name . '.idMember = ?', $intIdMember);
      
      $objResult = $this->getAdapter()->fetchAll($strSql);
            
      return $this->onLoad($objResult);   
    }
    
  }